﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GameSchool.Extra
{
    public class CustomTypes
    {
        [Flags]
        public enum LevelParticipateStateType : byte
        {
            Locked = 0, // Ekki kominn á þetta level.
            Open = 1,
            Finished = 2,
        }

        public static string LevelParticipateIcon(LevelParticipateStateType lvlPartStType)
        {
            switch (lvlPartStType)
            { 
                case LevelParticipateStateType.Open:
                    return "flag";
                case LevelParticipateStateType.Finished:
                    return "circle-check";
                case LevelParticipateStateType.Locked:
                    return "locked";
                default:
                    return "";
            }
        }

        [Flags]
        public enum QuestionType : byte
        {
            Text = 0,
            Option = 1,
        }
        [Flags]
        public enum CourseStateType : byte
        {
            Edit = 0,
            Active = 1,
            Inactive = 2
        }

        [Flags]
        public enum CourseRegType : byte
        { 
            NotParticipating = 0,
            Teacher = 1,
            Student = 2,
            Completed = 3
        }

        [Flags]
        public enum StudentAssignmentStatus : byte
        {
            NotStarted = 1,
            WorkingOn = 2,
            Finished = 3
        }

        [Flags]
        public enum LevelItemType : byte
        {
            Assignment = 1,
            Exam = 2,
            Video = 3
        }
    }
}